package com.health.article.sever.mapper;

import com.health.article.common.domain.dto.ShmArticleDTO;
import com.health.article.common.domain.vo.ShmArticleVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleMapper {

    List<ShmArticleVO> selectArticleAll();

    void insertArticle(ShmArticleDTO shmArticleDTO);

    void insertArticleSubject(@Param("articleId") Long articleId, @Param("subjectIds") Long[] subjectIds);

    List<ShmArticleVO> selectMyDraftAndArticle(@Param("creatorId") Long creatorId, @Param("articleStatus") Long articleStatus);
}
